package tests;

import us.versus.them.hmap.Gordie;

class AppTest extends haxe.unit.TestCase {
	public function testCombinations() {
		var result = Gordie.combinations( 
			[
				[ "last-guardian-sprites/" ]
				, [ "sprite." ]
				, [ "bk", "fr", "lf", "rt" ]
				, [ "." ]
				, [ "1", "2" ]
				, [ ".gif" ]
			]

		);
		var expected = [
			  "last-guardian-sprites/sprite.bk.1.gif"
			, "last-guardian-sprites/sprite.bk.2.gif"
			, "last-guardian-sprites/sprite.fr.1.gif"
			, "last-guardian-sprites/sprite.fr.2.gif"
			, "last-guardian-sprites/sprite.lf.1.gif"
			, "last-guardian-sprites/sprite.lf.2.gif"
			, "last-guardian-sprites/sprite.rt.1.gif"
			, "last-guardian-sprites/sprite.rt.2.gif"
		];
		assertEquals( result, expected );
	}
}
